import Mock from "mockjs";

Mock.mock("/api/get/user", "get", () => {
  const data131 = Mock.mock({
    msg: "操作成功",
    code: 200,
    children: [
      {
        name: "gaikui",
        path: "/gaikui",
        hidden: true,
        component: "gaikui",
        title: "概括",
        id: 1,
        pid: 0,
        meta: { title: "概括", icon: "guide", noCache: false },
      },
      {
        name: "Xqgl",
        path: "/shop",
        hidden: false,
        redirect: "noRedirect",
        component: "Layout",
        id: 2,
        pid: 0,
        alwaysShow: true,
        title: "商铺",
        meta: { title: "商铺", icon: "upload", noCache: false },
        children: [
          {
            name: "shop/overview",
            path: "/shop/overview",
            hidden: false,
            id: 4,
            pid: 2,
            component: "shop/overview",
            title: "商铺设置",
            meta: { title: "商铺设置", icon: "validCode", noCache: false },
            children: [
              {
                name: "shop/type",
                path: "/type",
                id: 5,
                pid: 4,
                hidden: false,
                component: "shop/overview/type",
                title: "商铺分类",
                meta: { title: "商铺分类", icon: "zip", noCache: false },
              },
              {
                name: "shop/caiji",
                path: "/caiji",
                hidden: false,
                id: 6,
                pid: 4,
                component: "shop/overview/caiji",
                title: "商铺采集",
                meta: { title: "商铺采集", icon: "zip", noCache: false },
              },
            ],
          },

          {
            name: "House",
            id: 7,
            pid: 2,
            path: "/labels",
            hidden: false,
            title: "标签设置",
            component: "shop/labels",
            meta: { title: "标签设置", icon: "table", noCache: false },
          },
        ],
      },
    ],
  });
  return {
    status: 200,
    message: "获取新闻列表数据成功",
    data: data131,
    code: 0,
  };
});
